Skip to content

feat: give log requests their own warning - #9630

Merged
koenvanderveen merged 3 commits into
devfrom
atlaie/enclave-msg-log-request-warning
Nov 19, 2026
Merged

koenvanderveen merged 3 commits into
devfrom
atlaie/enclave-msg-log-request-warning

Conversation

@atlaie

@atlaie atlaie commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • When a DO requests a log of an enclave job (request_stderr or request_stdout), we previously showed the approval warning, which calls it an approval and says to approve only reviewed code, although the job already ran. Now the request has its own warning, which names the readers and says the job code can print private data into the log. When readers are named, it adds that a request with no readers releases the log to the DOs only.

Guidelines

High level

  • 🟢 Split: no need to split.
  • 🟢 Size: give log requests their own warning, which names the readers.

Mid level

  • 🟢 User-facing code
  • 🟢 Error handling
  • 🟢 State versioning
  • 🟢 Function structure
  • 🟢 Tests

Low level

  • 🟢 Naming
  • 🟢 Code style

Security

No change: only the warning text changes.

Testing

  • test_log_request_warning_names_readers checks the warning with and without readers. The request_stderr test helper now matches the new warning.

Asana task

Original description

A log request no longer reuses the approval warning, which called it an approval and said to approve only reviewed code although the job had already run. It now has its own warning, which names the readers:

This request lets ds@x.com read stderr.txt, as the job wrote it. The job code can print private data into it. To read it first, request it with no readers: the enclave then releases it to the data owners only.

With no readers (the data owners), the last sentence is left out. Message only; no behaviour change.

One of five small PRs from the 13 Nov enclave test; each merges cleanly with the others and with #9576.

Asana: https://app.asana.com/0/0/1220519894181017/f

🤖 Generated with Claude Code

No rush: after the release.

A log request no longer reuses the approval warning. Its warning names
who will read the log and, when the readers are named, says to request
it with no readers first to read it before them.

Messages, display and docstrings only; no behaviour change.
Asana: https://app.asana.com/0/0/1220519894181017/f

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@koenvanderveen
koenvanderveen marked this pull request as ready for review November 19, 2026 14:35

@koenvanderveen koenvanderveen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@koenvanderveen
koenvanderveen merged commit a2e9ce8 into dev Nov 19, 2026
19 checks passed
@koenvanderveen
koenvanderveen deleted the atlaie/enclave-msg-log-request-warning branch November 19, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants